Homework 6: Events
CS 110
•
10 Points Total
Due on-line Wed. Mar. 14, 2018
Assignment
Read chapter 5 in the Alice text book. Answer the following questions -
type or
neatly write your answers. Repeat the questions being answered, then answer the questions. (2 pts each)
- List the different events that we can have Alice respond to (or handle).
- Can two events of the same type be created, such as two different when the world starts events?
- Can objects define their own event handlers or must they all be defined at the world level?
- Suppose we have an event that's triggered when the mouse is clicked on any object. In the method that's
called in response, how do we know which object was clicked on?
- When testing a method with a numeric parameter, state a guideline for what sorts of numbers to test it
with?
Type your name, "CS 110 HW6: Events", and the date completed --- at the top of your paper and upload into
Blackboard Learn by the due date. Remember the filenaming convention of Lastname_Firstname_HW6.docx or
something similar.